package com.sale.goods.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sale.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description 付款单
 * @Date 23-07-19
 * @Author hl
 **/
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("goods_payment")
public class GoodsPayment extends BaseEntity {

    /** id */
    @TableId(value = "payment_id")
    private Long paymentId;

    /** 收款单号 */
    private String paymentCode;

    /** 供应商编码  */
    private String supplierCode;

    /** 状态 */
    private Integer paymentStatus;

    /** 收款金额 */
    private BigDecimal paymentAmount;

    /** 本次核销金额 */
    private BigDecimal paymentCancelAmount;

    /** 整单折扣 */
    private BigDecimal packageDiscount;

    /** 本次预收款 */
    private BigDecimal thisAdvances;

    /** 收款人 */
    private String businessName;

    /** 本单应核销金额 */
    private BigDecimal paymentShouldAmount;

    /** 本单已核销金额 */
    private BigDecimal paymentHasAmount;

    /** 本单未核销金额 */
    private BigDecimal paymentNotAmount;

    /** 核销状态 */
    private Integer cancelStatus;

    /** 打印次数 */
    private Integer printCount;

    /** 备注 */
    private String remark;

    /** 附件地址 */
    private String avatar;

    /** 开票时间 */
    private String paymentTime;

    /**
     * 审核人
     */
    private String examineBy;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:m:ss")
    private Date examineTime;



}
